using System;
using System.Collections.Generic;
using System.Text;
using System.Data;

namespace Task.Contracts
{
    public interface IFriendsTask
    {
        int GetNumberOfFriends(int UserId);

        int[] GetCommonFriends(int UserId,int SessionId);         

        DataTable GetAllInfoFriends(int UserId,int pageNr);

        void AddFriend(int UserId, int AddFr);

        void DeleteFriend(int UserId, int DelFr);

        string GetLoginOfFriend(int UserId);

        int FriendsPerPage
        {
            get; 
            set; 
        }

        int InvitationsPerPage
        {
            get; 
            set;
        }

        DataTable GetSentInvitations(int UserId, int pageNr);

        DataTable GetReceivedInvitations(int UserId, int pageNr);

        void SendInvitationToFriend(int UserId, int AddFr);

        int GetNumberOfSentInvitations(int UserId);

        int GetNumberOfReceivedInvitations(int UserId);

        void AcceptInvitation(int UserId, int Fr);

        void RefuseInvitation(int UserId, int Fr);

    }
}
